package com.github.pig.training.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author andrew
 * @since 2018-06-26
 */
@TableName("training_student_register")
public class TrainingStudentRegister extends Model<TrainingStudentRegister> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "fid", type = IdType.AUTO)
    private Integer fid;
    /**
     * 学员
     */
    @TableField("student_id")
    private Integer studentId;
    /**
     * 报名方式
     */
    @TableField("register_mode")
    private String registerMode;
    /**
     * 支付方式
     */
    @TableField("pay_type")
    private String payType;
    /**
     * 班级类别
     */
    @TableField("class_type")
    private String classType;
    /**
     * 学车时段
     */
    @TableField("learn_same_time")
    private String learnSameTime;
    /**
     * 是否已付款
     */
    @TableField("is_pay")
    private String isPay;
    /**
     * 学费
     */
    private Double money;
    /**
     * 登记时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 登记人
     */
    @TableField("create_user")
    private Integer createUser;
    /**
     * 校区
     */
    @TableField("school_area")
    private String schoolArea;
    /**
     * 预计入学日期
     */
    @TableField("enrolment_date")
    private Date enrolmentDate;
    /**
     * 备注
     */
    private String remark;
    /**
     * 删除
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 修改人
     */
    @TableField("update_user")
    private Integer updateUser;


    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getRegisterMode() {
        return registerMode;
    }

    public void setRegisterMode(String registerMode) {
        this.registerMode = registerMode;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getClassType() {
        return classType;
    }

    public void setClassType(String classType) {
        this.classType = classType;
    }

    public String getLearnSameTime() {
        return learnSameTime;
    }

    public void setLearnSameTime(String learnSameTime) {
        this.learnSameTime = learnSameTime;
    }

    public String getIsPay() {
        return isPay;
    }

    public void setIsPay(String isPay) {
        this.isPay = isPay;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public String getSchoolArea() {
        return schoolArea;
    }

    public void setSchoolArea(String schoolArea) {
        this.schoolArea = schoolArea;
    }

    public Date getEnrolmentDate() {
        return enrolmentDate;
    }

    public void setEnrolmentDate(Date enrolmentDate) {
        this.enrolmentDate = enrolmentDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    protected Serializable pkVal() {
        return this.fid;
    }

    @Override
    public String toString() {
        return "TrainingStudentRegister{" +
        ", fid=" + fid +
        ", studentId=" + studentId +
        ", registerMode=" + registerMode +
        ", payType=" + payType +
        ", classType=" + classType +
        ", learnSameTime=" + learnSameTime +
        ", isPay=" + isPay +
        ", money=" + money +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", schoolArea=" + schoolArea +
        ", enrolmentDate=" + enrolmentDate +
        ", remark=" + remark +
        ", delFlag=" + delFlag +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        "}";
    }
}
